<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="htmlId">
<head>
    <title>Coverage Report :: Sprite</title>
    <style type="text/css">
        @import "../../.css/coverage.css";
    </style>
</head>

<body>
<div class="header"></div>

<div class="content">
    <div class="breadCrumbs">
        [ <a href="../../index.html">all classes</a> ]
        [ <a href="../index.html">nl.tudelft.jpacman.sprite</a> ]
    </div>

    <h1>Coverage Summary for Class: Sprite (nl.tudelft.jpacman.sprite)</h1>

    <table class="coverageStats">
        <tr>
            <th class="name">Class</th>
        </tr>
        <tr>
            <td class="name">Sprite</td>
        </tr>

    </table>

    <br/>
    <br/>


    <div class="sourceCode"><i>1</i>&nbsp;package nl.tudelft.jpacman.sprite;
        <i>2</i>&nbsp;
        <i>3</i>&nbsp;import java.awt.Graphics;
        <i>4</i>&nbsp;
        <i>5</i>&nbsp;/**
        <i>6</i>&nbsp; * Visual representation of some object.
        <i>7</i>&nbsp; *
        <i>8</i>&nbsp; * @author Jeroen Roosen
        <i>9</i>&nbsp; */
        <i>10</i>&nbsp;public interface Sprite {
        <i>11</i>&nbsp;
        <i>12</i>&nbsp; /**
        <i>13</i>&nbsp; * Draws the sprite on the provided graphics context.
        <i>14</i>&nbsp; *
        <i>15</i>&nbsp; * @param graphics
        <i>16</i>&nbsp; * The graphics context to draw.
        <i>17</i>&nbsp; * @param x
        <i>18</i>&nbsp; * The destination x coordinate to start drawing.
        <i>19</i>&nbsp; * @param y
        <i>20</i>&nbsp; * The destination y coordinate to start drawing.
        <i>21</i>&nbsp; * @param width
        <i>22</i>&nbsp; * The width of the destination draw area.
        <i>23</i>&nbsp; * @param height
        <i>24</i>&nbsp; * The height of the destination draw area.
        <i>25</i>&nbsp; */
        <i>26</i>&nbsp; void draw(Graphics graphics, int x, int y, int width, int height);
        <i>27</i>&nbsp;
        <i>28</i>&nbsp; /**
        <i>29</i>&nbsp; * Returns a portion of this sprite as a new Sprite.
        <i>30</i>&nbsp; *
        <i>31</i>&nbsp; * @param x
        <i>32</i>&nbsp; * The x start coordinate.
        <i>33</i>&nbsp; * @param y
        <i>34</i>&nbsp; * The y start coordinate.
        <i>35</i>&nbsp; * @param width
        <i>36</i>&nbsp; * The width of the target sprite.
        <i>37</i>&nbsp; * @param height
        <i>38</i>&nbsp; * The height of the target sprite.
        <i>39</i>&nbsp; * @return A new sprite of width x height, or a new {@link EmptySprite} if
        <i>40</i>&nbsp; * the region was not in the current sprite.
        <i>41</i>&nbsp; */
        <i>42</i>&nbsp; Sprite split(int x, int y, int width, int height);
        <i>43</i>&nbsp;
        <i>44</i>&nbsp; /**
        <i>45</i>&nbsp; * Returns the width of this sprite.
        <i>46</i>&nbsp; *
        <i>47</i>&nbsp; * @return The width in pixels.
        <i>48</i>&nbsp; */
        <i>49</i>&nbsp; int getWidth();
        <i>50</i>&nbsp;
        <i>51</i>&nbsp; /**
        <i>52</i>&nbsp; * Returns the height of this sprite.
        <i>53</i>&nbsp; *
        <i>54</i>&nbsp; * @return The height of this sprite in pixels.
        <i>55</i>&nbsp; */
        <i>56</i>&nbsp; int getHeight();
        <i>57</i>&nbsp;}
    </div>
</div>

<div class="footer">

    <div style="float:right;">generated on 2023-04-25 16:45</div>
</div>
</body>
</html>
